﻿#include"List.h"

void test01()
{
	//LTNode* plist = NULL;
	//LTInit(&plist);

	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	//LTPushFront(plist, 1);
	//LTPushFront(plist, 2);
	LTPrint(plist);

	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	//LTPrint(plist);

	//LTNode* find = LTFind(plist, 1);
	//if (find == NULL)
	//{
	//	printf("δҵ\n");
	//}
	//else {
	//	printf("ҵˣ\n");
	//}
	//LTInsert(find, 100);
	//LTErase(find);
	//LTPrint(plist);


	//LTDesTroy(&plist);
	LTDestroy(plist);
	plist = NULL;
}

int main()
{
	test01();
	return 0;
}